<div style="width: 416px; font: 0.85em arial;">
        <ul class="tabs" persist="true">
            <li><a href="#" rel="view1">Articles</a></li>
            <li><a href="#" rel="view2">Forum</a></li>
            <li><a href="#" rel="view3">Experts</a></li>
            <li><a href="#" rel="view4">Files</a></li>
             <li><a href="#" rel="view5">Judiciary</a></li>
              <li><a href="#" rel="view6">Video</a></li>
        </ul>
        <div class="tabcontents">
            <div id="view1" class="tabcontent">
            <?php 
            
            $articles = Article::getList('LATEST-ARTICLE', array());
            if(!empty($articles))
            {   
                foreach ($articles as $article)
                {       
            ?>
<li style="margin-left:-4px; margin-top:4px; position:relative; width:390px;"><a href="<?php echo ApplicationConfig::getURL("", "article", "view",array('id'=>$article->articleID)); ?>"><span style="margin-left:16px;"><?php echo $article->article_title; ?></span></a>
</li>


<?php
                }
                 if(count($articles)>10)
                {  
                ?>
<div class="popMore2"><a href="<?php echo ApplicationConfig::getURL("", "article", "list"); ?>">More...</a></div>
<?php
                }
            }
            else
            {
                echo "Articles Not Found";
            }
?>
            </div>
            
            <div id="view2" class="tabcontent">
              <?php 
//            $module = application.modules.yii-forum.YiiForumModule;
//            $forums = $model->Forum::getList('LATEST-FORUM', array());
            if(!empty($forums))
            {   
                foreach ($forums as $forum)
                {       
            ?>
<li style="margin-left:-4px; margin-top:4px; position:relative; width:390px;"><a href="<?php echo ApplicationConfig::getURL("forum", "forum", "view",array('id'=>$forum->id)); ?>"><span style="margin-left:16px;"><?php echo $forum->title; ?></span></a>
</li>


<?php
                }
                if(count($forums)>10)
                {  
                ?>
<div class="popMore2"><a href="<?php echo ApplicationConfig::getURL("forum", "forum", "list"); ?>">More...</a></div>
<?php
                }
            }
            else
            {
                echo "Forums Not Found";
            }
?>
            </div>
            <div id="view3" class="tabcontent">
               <?php 
            
            $experts = Experts::getList('LATEST-EXPERTS', array());
            if(!empty($experts))
            {   
                foreach ($experts as $expert)
                {       
            ?>
<li style="margin-left:-4px; margin-top:4px; position:relative; width:390px;"><a href="<?php echo ApplicationConfig::getURL("", "experts", "view",array('id'=>$expert->expID)); ?>"><span style="margin-left:16px;"><?php echo $expert->exp_title; ?></span></a>
</li>


<?php
                }
                if(count($experts)>10)
                {  
                ?>
<div class="popMore2"><a href="<?php echo ApplicationConfig::getURL("", "experts", "list"); ?>">More...</a></div>
<?php
                }
            }
            else
            {
                echo "Experts Not Found";
            }
?>
            </div>
            <div id="view4" class="tabcontent">
               <?php 
            
            $files = FileDownloads::getList('LATEST-FILES', array());
            if(!empty($files))
            {   
                foreach ($files as $file)
                {       
            ?>
<li style="margin-left:-4px; margin-top:4px; position:relative; width:390px;"><a href="<?php echo ApplicationConfig::getURL("", "fileDownloads", "view",array('id'=>$file->fdID)); ?>"><span style="margin-left:16px;"><?php echo $file->file_title; ?></span></a>
</li>


<?php
                }
                if(count($files)>10)
                {  
                ?>
<div class="popMore2"><a href="<?php echo ApplicationConfig::getURL("", "fileDownloads", "list"); ?>">More...</a></div>
<?php
                }
            }
            else
            {
                echo "Files Not Found";
            }
?>
            </div>
            <div id="view5" class="tabcontent">
               <?php 
            
            $judies = Judiciary::getList('LATEST-JUDICIARY', array());
            if(!empty($judies))
            {   
                foreach ($judies as $judie)
                {       
            ?>
<li style="margin-left:-4px; margin-top:4px; position:relative; width:390px;"><a href="<?php echo ApplicationConfig::getURL("", "judiciary", "view",array('id'=>$judie->jdID)); ?>"><span style="margin-left:16px;"><?php echo $judie->jd_title; ?></span></a>
</li>


<?php
                }
                 if(count($judies)>10)
                {  
                ?>
<div class="popMore2"><a href="<?php echo ApplicationConfig::getURL("", "judiciary", "list"); ?>">More...</a></div>
<?php
                }
            }
            else
            {
                echo "Judiciary Not Found";
            }
?>
            </div>
            <div id="view6" class="tabcontent">
                  <?php 
            
            $videos = Video::getList('LATEST-VIDEOS', array());
            if(!empty($videos))
            {   
                foreach ($videos as $video)
                {       
            ?>
<li style="margin-left:-4px; margin-top:4px; position:relative; width:390px;"><a href="<?php echo ApplicationConfig::getURL("", "video", "view",array('id'=>$video->videoID)); ?>"><span style="margin-left:16px;"><?php echo $video->video_title; ?></span></a>
</li>


<?php
                }
                 if(count($videos)>10)
                {  
                ?>
<div class="popMore2"><a href="<?php echo ApplicationConfig::getURL("", "video", "list"); ?>">More...</a></div>
<?php
                }
            }
            else
            {
                echo "Videos Not Found";
            }
?>
            </div>
        </div>
    </div>